package com.smart_environmental_protection.service.ServiceImp;

import com.smart_environmental_protection.dao.ContentDao;
import com.smart_environmental_protection.dao.CpnlistDao;
import com.smart_environmental_protection.pojo.Content;
import com.smart_environmental_protection.pojo.Cpnlist;
import com.smart_environmental_protection.service.CplistService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class CplistServiceImp implements CplistService {
    @Resource
    private CpnlistDao cpnlistDao;

    @Override
    public List<Cpnlist> CList() {
        return cpnlistDao.CList();
    }

    @Override
    public Cpnlist getCpnById(Integer id) {
        return cpnlistDao.getCpnById(id);
    }
}
